<meta charset="utf-8">
<ion-view view-title="个人资料"  hide-tabs='true'>
		<style>
			input[type=file] {
				opacity: 0;
				position: absolute;
				top: 0;
				border: 1px solid red;
			}
		</style>
		<div class="content has-header login">
				<div>	<form id= "uploadForm" style="display: none;">  
       <input type="file"  id="hdfm" onchange="angular.element(this).scope().change()" name="file"/></ p>  
</form>  
			<img id='previewResult' ng-src="{{FormData}}" ng-model='FormData' ng-click='csfm()'  class="touxiang" /></div>
			<div class="item item-input">
				<span class="span">昵称</span>
				<input type="text" placeholder="输入昵称" ng-model='name' style="margin: 0; padding-left: 4em;">
			</div>
			<div class="item item-input ">

				<span class="span" style="width: 100%; ">
						<div class="fl">性别</div>
				 <div class="fl" id='riao1' ng-click='xb="男"' >
							<i class="iconfont icon-icon" style="color: #3b9ce9; padding-left: 3em;">
							 </i>
							 <span style="margin-left: 10px;color: #000;">男</span>
			</div>
			<div class="fl" id='riao2' ng-click='xb="女"' style="margin-left: 20px;">
				<i class="iconfont icon-icon-copy"></i>
				<span style="margin-left: 10px;">女</span>
			</div>
			</span>

		</div>
		<div class="item item-input">
			<span class="span">生日</span>
			<input type="date" placeholder="输入生日"  ng-model='sr' style="margin: 0; padding-left: 4em;">
		</div>
		<a >
			<button class=" login " ng-click='updata()' style="position: relative;margin-top:20% ;">
					<span style="position:relative;z-index: 99;">修改</span>
					
				</button></a>
		</div>

		<div style="position:relative; bottom:0; right:0; margin-top: 35%;">

		</div>

		<script>
			$("#riao1").click(function() {

				$(this).find(".iconfont").css("color", '#3b9ce9');
				$(this).find("span").css("color", '#000');

				$('#riao2').find(".iconfont").css("color", '#ccc');
				$('#riao2').find("span").css("color", '#ccc');

			});
			$("#riao2").click(function() {

				$(this).find(".iconfont").css("color", 'rgb(198,0,0)');
				$(this).find("span").css("color", '#000');
				$('#riao1').find(".iconfont").css("color", '#ccc');
				$('#riao1').find("span").css("color", '#ccc');

			});
			
		</script>
</ion-view>